﻿namespace IdGen;

/// <summary>
/// 为标识符生成器提供接口
/// </summary>
/// <typeparam name="T">标识ID类型</typeparam>
public interface IIdGenerator<T> : IEnumerable<T>
{
    /// <summary>
    /// 创建一个新ID
    /// </summary>
    /// <returns>Returns an Id.</returns>
    T CreateId();
}
